/**  
* @Title: EmployeeServiceImpl.java
* @Package com.baili.service.employee
* @Description: TODO(用一句话描述该文件做什么)
* @author dingkunjie  
* @date 2016年1月7日 下午4:40:29
* @version V1.0  
*/ 
package com.baili.service.employee;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baili.dao.employee.EmployeeDao;
import com.baili.dto.Employee;

/**  
 * @Title: EmployeeServiceImpl.java
 * @Package com.baili.service.employee
 * @Description: employee service层实现类
 * @author dingkunjie  
 * @date 2016年1月7日 下午4:40:29
 * @version V1.0  
 */
@Service
@Transactional(readOnly=true)
public class EmployeeServiceImpl implements EmployeeService {

	@Autowired
	private EmployeeDao employeeDaoImpl;

	/**
	* @Title: addEmployee
	* @Description: 增加employee
	* @param @param employee  employee对象
	* @return void    返回类型
	* @throws
	* @author dingkunjie
	*/ 
	public int addEmployee(Employee employee) {
		// TODO Auto-generated method stub
		return employeeDaoImpl.addEmployee(employee);
	}

	/* (非 Javadoc)
	* <p>Title: findAllEmpolyee</p>
	* <p>Description: </p>
	* @return
	* @see com.baili.service.employee.EmployeeService#findAllEmpolyee()
	* @author dingkunjie
	*/ 
	@Override
	public List<Map<String, Object>> findAllEmpolyee() {
		// TODO Auto-generated method stub
		return employeeDaoImpl.findAllEmpolyee();
	}
}
